package FIT::Fixture::t::Runner;

use FIT::Test 'FIT::Fixture::Runner';
use base 'FIT::Fixture::t::Base';
use aliased 'FIT::t::Fixture::Mock';

sub bad_run: Test {
    my $self = shift;
    my $table = $self->make_table('Non_Existent_Fixture_Name');
    IUT->new->run_fixtures($table);
    like $table->fixture_name, qr/load package/;
}                   
                    
sub good_run: Test {
    Mock->clear_Called;
    my $self = shift;
    my $table = $self->make_table('FIT.t.Mock');
    IUT->new->run_fixtures($table);
    ok Mock->Called('do_tables');
}

